<!-- Study_classWindow.html -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>课堂window</title>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style type="text/css" media="screen">
			.base_right_item {
				width: 80px;
				text-align: center;
			}
			.top-segment-div:before{
			    position: absolute;
			    right: 0;
			    /*bottom: 0;*/
			    top: 103px;
			    left: 0;
			    height: 1px;
			    content: '';
			    -webkit-transform: scaleY(.5);
			    transform: scaleY(.5);
			    background-color: #c8c7cc;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color">
			<a class="base_left_item" href="#" onclick="backIndex()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span>课堂</span>
		</div>
		
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script>
		apiready = function() {
			
			setupCourseFrame();
			setupNotifi();
		}
		function setupCourseFrame(){
			var y = $('#BarAppearance').height() + $('.base_navigation_bar').height();
			var h = api.winHeight - y - 52;
			var rect = {
				x : 0,
				y : y,
				w : 'auto',
				h : h
			}
			api.openFrame({
			    name: 'Study_classFrame',
			    url: 'Study_classFrame.html',
			    rect: rect,
			});
			hideStudy_classFrame();
		}
		


		function setupNotifi() {
			api.addEventListener({
				name : 'showStudy_classNotifi'
			}, function(ret, err) {
				// showCourseFrameGroup();
				showStudy_classFrame();
			});
			api.addEventListener({
				name : 'hideStudy_classNotifi'
			}, function(ret, err) {
				// hideCourseFrameGroup();
				hideStudy_classFrame();
			});
			//			alert(api.pageParam.IndexType);
		}

		function showStudy_classFrame() {
			api.setFrameAttr({
			    name: 'Study_classFrame',
			    hidden: false
			});
		}

		function hideStudy_classFrame() {
			api.setFrameAttr({
				name : 'Study_classFrame',
				hidden : true
			});
		}
	


		function backIndex() {
			api.closeWin();
		}
	</script>
</html>